module time_change(
	input Clk_50M,
	input Rst_n,
	output[15:0] Led_temp,
	output[24:0] Led_state
);

	wire Clk_51200Hz;
	wire Clk_1Hz;
	wire[5:0] Minute;
	wire[5:0] Second;

	frequency_51200Hz f_51200Hz(
		.clk_50M(Clk_50M),
		.rst_n(Rst_n),
		.clk_51200Hz(Clk_51200Hz)		//50M / 51.2K = 976; count = 976 / 2 - 1 = 487
	);
	
	frequency_1Hz f_1Hz(
		.clk_51200Hz(Clk_51200Hz),
		.rst_n(Rst_n),
		.clk_1Hz(Clk_1Hz)		//51.2K / 1 = 51200; 51200 / 2 - 1 = 25_599
	);
	
	timer t0(
		.clk_1Hz(Clk_1Hz),
		.rst_n(Rst_n),
		.minute(Minute),
		.second(Second)
	);
	
	timer_change t_change0(
		.clk_51200Hz(Clk_51200Hz),
		.rst_n(Rst_n),
		.minute(Minute),
		.second(Second),
		.temp(Led_temp),
		.led_state(Led_state)
	);

endmodule
